COLOR LIMB
This command will color the specified limb of a 3D object using an RGB colour value.
COLOR LIMB Object Number, Limb Number, Color Value
Object Number
Integer
The object number
Limb Number
Integer
The limb number
Color Value
Dword
This command will color the specified limb of a 3D object using an RGB colour value
This command does not return a value.
The parameters must be integer values. The RGB color value can be generated by using the RGB command. Some objects loaded from a model file may not be colored if they do not already contain diffuse color data.
sync on : sync rate 60 : hide mouse:cls 0
ObjectNumber=1
LimbNumber=7
load object "model.x",ObjectNumber
load image "iron.jpg",1
while mouseclick()=0
color limb ObjectNumber,LimbNumber,rgb(0,255,0)
sync
endwhile
delete object ObjectNumber
delete image 1
end
BASIC3D Commands Menu
Index